﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BaoJian.P
{
    public partial class PDoc : System.Web.UI.Page
    {
        private string oid;
        private LYQ.BLL.Doc bll;
        public LYQ.Model.Doc model;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                oid = HttpContext.Current.Request.QueryString["oid"];
                if(oid  == null)
                {
                    Page.Response.Redirect(@"../Error.aspx");
                }

                bll = new LYQ.BLL.Doc();
                model = bll.GetModel(oid);        

             

            }

        }     
    }
}
